class Homework:                       # 建立一个对象；
    def __init__(self):
        str1 = "人生苦短，我用python"   #封装，继承多态
        print(str1)
    def type(self):
        a = 1
        print(int(a))
class Game(Homework):                   #继承
    def __init__(self):
        print("我爱python")
    def type(self):                     #修改
        print(3)
homework = Homework()
homework.type()
game = Game()
game.type()

a = 1
b = 2.5
c = ".1"
d = [1, 2, 3]
e = (1, 2)
f = {"a", 1}
str2 = "人生苦短，我用python"
print(type(a))
print(type(b))
print(type(c))
print(type(d))
print(type(e))
print(type(f))
print(type(str2))







